import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询投诉建议列表
export function listReport(data) {
  return request({
    url: '/customer/report/customerReportList',
    method: 'post',
    data: data
  })
}

// 查询投诉建议详细
export function getReport(reportId) {
  return request({
    url: '/customer/report/' + parseStrEmpty(reportId),
    method: 'get'
  })
}

// 新增投诉建议
export function addReport(data) {
  return request({
    url: '/customer/report',
    method: 'post',
    data: data
  })
}

// 修改投诉建议
export function updateReport(data) {
  return request({
    url: '/customer/report',
    method: 'put',
    data: data
  })
}

// 删除投诉建议
export function delReport(reportId) {
  return request({
    url: '/customer/report/' + reportId,
    method: 'delete'
  })
}
